import { getEditorProps, getGridEditorCommonProps } from './common';

/**
 * 获取数据选择的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getDataPickerProps<C>() {
  return { ...getEditorProps<C>(), value: [String, Array, Object, Number] };
}

/**
 * 获取表格数据选择的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getGridDataPickerProps<C>() {
  return { ...getDataPickerProps<C>(), ...getGridEditorCommonProps() };
}
